/**
 * 
 */
package com.nttuyen.support.instant.bot;

import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPConnection;
import com.nttuyen.support.instant.AgentBot;
import com.nttuyen.support.instant.SupportBot;

/**
 * @author nttuyen
 *
 */
public class GoogleBot implements AgentBot, SupportBot {

	private final String username;
	private final String password;
	
	private final ConnectionConfiguration config;
	private XMPPConnection connection = null;
	
	public GoogleBot(String username, String password) {
		this.username = username;
		this.password = password;
		this.config = new ConnectionConfiguration("talk.google.com", 5222, "googlemail.com");
	}
	
	@Override
	public void start() throws Exception {
		this.connection = new XMPPConnection(this.config);
		this.connection.connect();
		this.connection.login(this.username, this.password);
	}

	@Override
	public void stop() {
		// TODO Auto-generated method stub
		
	}

}
